﻿<%@ Page Language="C#" ValidateRequest="false" Theme="WebMaster" MasterPageFile="~/WebMaster/MasterPage.master" AutoEventWireup="true" CodeFile="ProductAdd.aspx.cs" Inherits="webapp4U.UI.WebMaster_Default" %>
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">

<uc:Title runat="server" ResourceKey='Product_Add'  />
<table width="100%" border="0"  cellpadding="0" cellspacing="0">
    <tr >
        <td colspan="2" align="center">
            <asp:Panel runat="server" ID="PanelMsg" CssClass="lblMsg" Visible="false" Width="400px">
                <asp:Label runat="server" ID="lblMsg"></asp:Label>
            </asp:Panel>
            <asp:ValidationSummary runat="server" ID="valChangePasswordSummary" ShowMessageBox="true" ShowSummary="false" />			
        </td>
    </tr>
    <tr>
        <td valign="top" style="padding-top:5pt;">
            <table align="left" border="0" cellpadding="8" cellspacing="0">
                 <tr style="padding-top:10pt;">
                    <td width="130" align="right">Ngôn ngữ :</td>
                    <td>
                        <webapp4U:ddlLanguages runat="server" ID="dlLanguages" CssClass="Textbox" Width="255" EnableViewState="true" />
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ControlToValidate="dlLanguages" ErrorMessage="Bạn chưa chọn ngôn ngữ" Display="None"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;">
                    <td width="130" align="right">Thuộc loại :</td>
                    <td>
                        <webapp4U:ddlCategory runat="server" ID="dlCategory" CssClass="Textbox" Width="255" EnableViewState="true"></webapp4U:ddlCategory>
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="dlCategory" ErrorMessage="Bạn chưa chọn nhóm sản phẩm" Display="None"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr style="padding-top:10pt;">
                    <td width="130" align="right">Nhà Sản Xuất :</td>
                    <td>
                        <webapp4U:ddlCompany runat="server" ID="dlCompany" CssClass="Textbox" Width="255" EnableViewState="true" />
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="dlCompany" ErrorMessage="Bạn chưa chọn công ty" Display="None" />
                    </td>
                </tr>
                <tr style="padding-top:10pt;">
                    <td  align="right">Mã sản phẩm :</td>
                    <td>
                        <asp:TextBox ID="txtProductCode"  Font-Bold="true" runat="server" Width="250" MaxLength="700"></asp:TextBox>
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;" >
                    <td align="right">Tên sản phẩm :</td>
                    <td>
                        <asp:TextBox ID="txtProductName"  Font-Bold="true" runat="server" Width="250" MaxLength="700"></asp:TextBox>
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="txtProductName" ErrorMessage="Chưa nhập Tên sản phẩm" Display="None" />
                    </td>
                </tr>                   
                
                 
                <tr style="padding-top:10pt;">
                    <td align="right">Giá bán :</td>
                    <td>
                        <asp:TextBox ID="txtPrice"  Font-Bold="true" runat="server" Width="250" MaxLength="700"></asp:TextBox> VNĐ
                        <asp:RegularExpressionValidator runat="server" SetFocusOnError="true" 
                                 ID="RegularExpressionValidator1" 
                                 ControlToValidate="txtPrice" 
                                 ValidationExpression="^(([0-9.,\s])+)$" 
                                 ErrorMessage="Giá bán phải là kiểu số(vd: 1.500.000)." Display="none">
                        </asp:RegularExpressionValidator>
                    </td>
                </tr>
                
                <tr style="padding-top:10pt;">
                    <td align="right">Hình ảnh :</td>
                    <td valign="middle">
                        <asp:FileUpload runat="server" ID="PhotoFile" Width="255px"/>
                        <asp:HiddenField runat="server" ID="HPhotoFile" />
                        <asp:Image ID="imgProduct" runat="server" Width="70px" Height="70px" />
                    </td>
                </tr>
                
                
                <tr>
                    <td align="right" valign="top">Mô tả tóm tắc :</td>
                    <td>
                        <FTB:FreeTextBox id="txtSummary"  
                            TabIndex="3"
                            toolbarlayout="FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink|InsertTable,EditTable,InsertImageFromGallery"
                            runat="Server" ImageGalleryPath="~/UserUpload/Products"
                            Width="585px" Height="125px"
                            />
                        <%--<asp:TextBox ID="txtSummary"  runat="server" Rows="5" TextMode="MultiLine" Width="400" MaxLength="700"></asp:TextBox>--%>
                    </td>
                </tr>
                               
                <tr>
                    <td align="right" valign="top">Thông tin mô tả :</td>
                    <td>                        
                        <FTB:FreeTextBox id="txtDesc"  
                            TabIndex="3"
                            toolbarlayout="FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink|InsertTable,EditTable,InsertImageFromGallery"
                            runat="Server" ImageGalleryPath="~/UserUpload/Products"
                            Width="585px" Height="200px"
                            />
                    </td>
                </tr>
                <tr style="padding-top:10pt;">
                    <td  align="right">Link Demo :</td>
                    <td>
                        <asp:TextBox ID="txtLinkDemo"  Font-Bold="true" runat="server" Width="250" MaxLength="700"></asp:TextBox>
                    </td>
                </tr>
                <tr style="padding-top:7pt; padding-right:3pt; padding-bottom:20pt;">
                    <td colspan="2" align="right">
                        <asp:Button runat="server" ID="btSave" OnClick="btSave_Click" Text=" Save " />
                    </td>
                </tr>
           </table>
        </td>
    </tr>
</table>
<br /><br /><br />

</asp:Content>

